import matplotlib.pyplot as plt
input_values = [1,2,3,4,5]
squares = [1,4,9,16,25]

plt.style.use('seaborn')
fig, ax = plt.subplots()
ax.plot(input_values , squares, linewidth=3)

#设置图表标题并给坐标轴加上标签
ax.set_title("平方数",fontproperties= "SimHei" , fontsize=24)
ax.set_xlabel("值",fontproperties= "SimHei" , fontsize=14)
ax.set_ylabel("值的平方", fontproperties= "SimHei" ,fontsize=14)
#设置刻度的标记大小
ax.tick_params(axis='both', labelsize=14)

plt.show()